package duckcase.duck;

import duckcase.duck.strategy.fly.FlyAble;
import duckcase.duck.strategy.quack.QuackAble;

/**
 * description:
 *  鸭子基类
 * @author yuanmenglv on 2019/11/25
 */
public abstract class Duck {
    public FlyAble flyAble;
    public QuackAble quackAble;


    public void fly(){
        this.flyAble.fly();
    }

    public void quack(){
        this.quackAble.quack();
    }

    public abstract void display();

}
